<template>
    <div class="skills-w">
        <!-- <search></search> -->
        <div class="main-wrap">
            <div class="border-right-1px menu-wraper" ref="menu_w">
                <ul class="text-center">
                    <router-link class="menu-item border-bottom-1px" to="kecwork" tag="li">
                        <span class="text">KEC<br>工厂介绍</span>
                    </router-link>
                    <router-link class="menu-item border-bottom-1px" to="kecskill" tag="li">
                        <span class="text">KEC<br>技术</span>
                    </router-link>
                    <router-link class="menu-item border-bottom-1px" to="industrialin" tag="li">
                        <span class="text">Industrial<br>工业动力</span>
                    </router-link>
                    <router-link class="menu-item border-bottom-1px" to="marine" tag="li">
                        <span class="text">Marine<br>船舶动力</span>
                    </router-link>
                </ul>
            </div>
            <keep-alive>
                <router-view></router-view>
            </keep-alive>
        </div>
    </div>
</template>

<script type="text/ecmascript-6">
    import Search from 'components/search/search';
    import BScroll from 'better-scroll';

    export default {
        data() {
            return {
                isActive: 1
            }
        },
        created() {
            this.$nextTick(() => {
                this._initScroll();
            })
        },
        methods: {
            _initScroll() {
                this.menuScroll = new BScroll(this.$refs.menu_w, {
                    click: true
                });
            }
        },
        components: {
            Search
        }
    }
</script>

<style lang="less" rel="stylesheet/less">
    @import '../../common/less/index.less';

    .main-wrap {
        display: flex;
        position: absolute;
        top: 0px;
        width: 100%;
        box-sizing: border-box;
        bottom: 0px;
        overflow: hidden;
        z-index: 10;
        background-color: #fff;
    }

    .menu-wraper {
        .border-right-1px(@color-border);
        width: 100px;
        flex: 0 0 100px;
        background-color: #f3f5f7;
        .menu-item {
            .border-bottom-1px(@color-border);
            display: table;
            height: 50px;
            width: 100px;
            font-size: @font-size-small;
            color: @color-text-333;
            line-height: 14px;
            .text {
                display: table-cell;
                vertical-align: middle;
            }
        }
        .menu-item.router-link-active {
            background-color: @color-bg-active;
        }
    }

    .skillwrapper {
        flex: 1;
        box-sizing: border-box;
        position: relative;
        top: 0;
        bottom: 0;
    }

    .s-list-area {
        box-sizing: border-box;
        position: absolute;
        top: 0px;
        bottom: 0;
        overflow: hidden;
        width: 100%;
        .pro-item {
            border-top: 10px solid #ebebeb;
            padding-top: 10px;
            width: 100%;
            box-sizing: border-box;
            min-height: 100px;
            display: block;
            overflow: hidden;
            position: relative;
            text-decoration: none;
            .list-item-con {
                .border-bottom-1px(@color-border);
                box-sizing: border-box;
                // margin: 0px 14px 10px;
                padding:  0 14px 10px;
            }
            .border-none{
                .border-none();
            }
            .desc {
                width: 100%;
                .text {
                    display: block;
                    color: @color-text-666;
                    line-height: 18px;
                    font-size: @font-size-small
                }
                .desc-title {
                    color: @color-text-333;
                    font-size: @font-size-meduim-x;
                }
            }
        }
        .pro-item:first-child,.pro-item-nobd{border-top: none;}
        .page-cell {
            .list-item:last-child .list-item-con {
                .border-none();
            }
        }
    }

    .skillimg {
        max-width: 100%;
        border: 1px solid @color-border;
    }

    .loading-container {
        position: absolute;
        width: 80%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 888;
    }

    .bottom-tip {
        width: 100%;
        height: 35px;
        line-height: 35px;
        text-align: center;
        color: #777;
        font-size: 12px;
        background: #f2f2f2;
    }

    .slide-wrapper {
        height: 140px;
        .mint-swipe-indicator.is-active {
            background: @color-bg-active;
            opacity: 1;
        }
        img {
            max-width: 100%;
        }
    }
</style>
